@white: #ffffff;
@gray: #CCCCCC;
@dgray: #333333;
.wh(@w: 100px, @h: 100%) {
    width: @w;
    height: @h;
}

.border-radius(@r: 0) {
    -webkit-border-radius: @r;
    -moz-border-radius: @r;
    border-radius: @r;
}

.transition(@a: all, @t: .3s) {
    -webkit-transition: @a @t;
    -moz-transition: @a @t;
    -ms-transition: @a @t;
    transition: @a @t;
}

.background(@d: 320deg, @c1: #00c4ff, @c2: #5ab779) {
    background: -webkit-linear-gradient(@d, @c1, @c2);
    background: -o-linear-gradient(@d, @c2, @c1);
    background: -moz-linear-gradient(@d, @c2, @c1);
    background: linear-gradient(@d, @c2, @c1);
}

.font(@s: 14px, @a: center, @c: @gray) {
    font-size: @s;
    text-align: @a;
    color: @c;
}

html,
body {
    width: 100%;
    height: auto;
    background-color: @white;
}

.body {
    min-height: 100%;
    line-height: 16px;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 16px;
    background: url(../../img/timg.jpg) center no-repeat;
    background-size: 100% 100%;
}

.clearfix {
    *zoom: 1;
    &:after {
        display: table;
        line-height: 0;
        height: 1px;
        content: "";
        clear: both;
    }
}

.container {
    width: 970px;
    height: auto;
    margin: 0 auto;
    padding: 0;
}

.header {
    >a {
        display: block;
        float: left;
        .wh(auto, 45px);
        line-height: 45px;
        .font(16px, center, @white);
        padding: 0 10px;
        &:hover {
            background-color: #2fbdb9;
        }
        &:first-child {
            position: absolute;
            left: 0;
            pointer-events: none;
        }
    }
    .form-search {
        float: left;
        position: relative;
        .wh(15%, auto);
        margin: 0;
        padding: 5px 0;
        .transition();
        input {
            height: 35px;
            line-height: 15px;
            font-size: 14px;
            background-color: rgba(0, 0, 0, 0);
            margin: 0;
            padding: 10px 40px 10px 20px;
            .border-radius(20px);
        }
        a {
            position: absolute;
            top: 5px;
            right: 0;
            .wh(40px, 40px);
            line-height: 40px;
            text-align: center;
            color: @dgray;
        }
    }
    .form-search-act {
        float: left;
        position: relative;
        .wh(25%, auto);
        margin: 0;
        padding: 5px 0;
        .transition();
        input {
            height: 35px;
            line-height: 15px;
            font-size: 14px;
            background-color: @white;
            margin: 0;
            padding: 10px 40px 10px 20px;
            .border-radius(20px);
        }
        a {
            position: absolute;
            top: 5px;
            right: 0;
            .wh(40px, 40px);
            line-height: 40px;
            text-align: center;
            color: @dgray;
        }
    }
    .user-header {
        float: right;
        .wh(45px, 45px);
        padding: 5px;
        a {
            display: block;
        }
        img {
            .wh(100%, 100%);
            .border-radius(20px);
        }
    }
}

.jy-logo {
    box-sizing: border-box;
    display: block;
    .wh(auto, 45px);
    padding: 5px;
}

.jy-blue {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    .background();
    padding: 0 15px;
    box-shadow: 0 0 5px #000000;
    z-index: 999;
    .container {
        .container;
    }
}

.after-img {
    position: absolute;
    top: 10px;
    left: 10px;
    content: '';
    .wh(50px, 40px);
}

.after-img1 {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    .wh(33px, 33px);
}

.jy-content {
    margin-top: 50px;
}

.content-card {
    .wh(65%, auto);
    padding: 15px 0;
    float: left;
    .card {
        float: left;
        position: relative;
        .wh(auto, 35px);
        line-height: 35px;
        .font(14px, center, @dgray);
        border: 1px solid @gray;
        .border-radius(3px);
        background-color: @white;
        margin: 0 3% 20px 0;
        padding: 0 10px 0 50px;
        cursor: pointer;
        .transition();
        &:hover {
            color: @white;
            background-color: #2596e2;
            border: 1px solid #00adff;
            .transition();
        }
        &:after {
            .after-img1;
            .background();
            background-repeat: no-repeat;
            background-size: 35px auto;
        }
        &:first-child {
            &:after {
                background-image: url(../../img/IT.png);
            }
        }
        &:nth-child(2) {
            &:after {
                background-image: url(../../img/camera.png);
            }
        }
        &:nth-child(3) {
            &:after {
                background-image: url(../../img/natural.png);
            }
        }
        &:nth-child(4) {
            &:after {
                background-image: url(../../img/health.png);
            }
        }
        &:nth-child(5) {
            &:after {
                background-image: url(../../img/college.png);
            }
        }
    }
    .user-info {
        position: relative;
        .wh(100%, 100px);
        padding: 0 0 0 100px;
        .user-name {
            font-size: 24px;
            line-height: 40px;
            padding: 0 12px;
        }
        >a {
            display: block;
            .wh(100%, 40px);
        }
        img {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100px;
            height: 100px;
            .border-radius(50%);
        }
        >div {
            .wh(100%, 60px);
            padding: 0 12px;
        }
        ul {
            margin: 0;
            padding: 0;
            li {
                position: relative;
                float: left;
                width: 4em;
                height: auto;
                list-style: none;
                padding: 0 0 20px 0;
                text-align: center;
                font-size: 14px;
                i {
                    display: block;
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    width: 4em;
                    height: auto;
                }
            }
        }
    }
}

.content-main {
    float: left;
    position: relative;
    width: 100%;
    height: auto;
    .mui-btn-block.mui-spinner {
        .wh(16px, 16px);
    }
    .mui-btn {
        padding: 5px 0;
        font-size: 16px;
    }
    ul {
        margin: 0;
        padding: 15px;
    }
    li {
        display: block;
        position: relative;
        width: 100%;
        height: auto;
        list-style: none;
        &:before {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            content: "";
            width: 100%;
            height: 1px;
            background-color: @gray;
        }
        >div {
            &:first-child {
                position: relative;
                width: 100%;
                height: auto;
                padding: 20px 100px 0 50px;
                img {
                    display: block;
                    position: absolute;
                    top: 20px;
                    left: 0;
                    width: 40px;
                    height: 40px;
                    .border-radius(50%);
                }
                a {
                    display: block;
                    width: auto;
                    height: 40px;
                    line-height: 40px;
                    .font(14px, left, @dgray);
                    padding: 0 10px;
                }
                span {
                    position: absolute;
                    top: 20px;
                    right: 0;
                    line-height: 40px;
                    .font(14px, right, #888888);
                }
            }
            &:nth-child(2) {
                position: relative;
                width: 100%;
                height: auto;
                padding-top: 10px;
                padding-right: 110px;
                a {
                    display: block;
                    color: @dgray;
                    font-weight: bold;
                    padding: 0;
                }
                p {
                    display: block;
                    width: 100%;
                    height: auto;
                    margin-bottom: 0;
                    padding: 10px 0;
                }
                img {
                    display: block;
                    position: absolute;
                    top: 10px;
                    right: 0;
                    width: 100px;
                    height: 100px;
                }
            }
            &:nth-child(3) {
                width: 100%;
                height: auto;
                padding: 10px 0;
                a {
                    display: block;
                    position: relative;
                    &:first-child {
                        float: left;
                        line-height: 14px;
                        .font(12px, center, @white);
                        .background();
                        .border-radius(3px);
                        padding: 5px 10px;
                    }
                    &:nth-child(2),
                    &:nth-child(3),
                    &:nth-child(4) {
                        float: right;
                        line-height: 16px;
                        .font(14px, center, #818181);
                        padding: 5px 5px 5px 25px;
                        &:before {
                            content: "";
                            display: block;
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 26px;
                            height: 26px;
                            background-repeat: no-repeat;
                            background-size: 14px 14px;
                            background-position: center;
                        }
                    }
                    &:nth-child(2) {
                        &:before {
                            background-image: url(../../img/look.png);
                        }
                    }
                    &:nth-child(3) {
                        &:before {
                            background-image: url(../../img/comment.png);
                        }
                    }
                    &:nth-child(4) {
                        &:before {
                            background-image: url(../../img/collect.png);
                        }
                    }
                }
            }
        }
    }
}

.content-card-r {
    width: 30%;
    height: auto;
    padding: 15px 0;
    float: right;
    .card {
        position: relative;
        width: 100%;
        height: 50px;
        line-height: 50px;
        cursor: pointer;
        .font(18px, center, @white);
        .border-radius(10px);
        margin-bottom: 20px;
        .background();
        opacity: .6;
        .transition();
        &:after {
            .after-img;
            background-size: 50px auto;
            background-repeat: no-repeat;
        }
        &:first-child {
            .background(320 deg, #d200ff, #5f45b5);
            &:after {
                background-image: url(../../img/toph.png);
            }
        }
        &:nth-child(2) {
            .background(320deg, #07ff54, #008827);
            &:after {
                background-image: url(../../img/daily.png);
            }
        }
        &:nth-child(3) {
            .background(320deg, #ffd84a, #c37a00);
            &:after {
                background-image: url(../../img/fire.png);
            }
        }
        &:nth-child(4) {
            .background(320 deg, #ff7979, #c30000);
            &:after {
                background-image: url(../../img/hot.png);
            }
        }
        &:hover {
            opacity: 1;
            .transition();
        }
    }
    .auther {
        width: 100%;
        height: auto;
        >div {
            position: relative;
            padding: 05em 10px 5em;
            span
            {
                display: block;
                width: 100%;
                height: 30px;
                line-height: 30px;
                .font(14px, right, @gray);
            }
            >p {
                position: absolute;
                top: 0;
                left: 0;
                line-height: 30px;
                margin-bottom: 0;
            }
            >ul {
                position: absolute;
                top: 0;
                right: 0;
            }
        }
        ul {
            margin: 0;
            padding: 0;
            li {
                position: relative;
                list-style: none;
            }
            img {
                display: block;
                position: absolute;
                top: 0;
                left: 0;
                width: 40px;
                height: 40px;
                .border-radius(50%);
            }
            .auther-name {
                width: 100%;
                padding: 0 50px;
                a,
                p {
                    display: block;
                    height: 20px;
                    line-height: 20px;
                    font-size: 14px;
                }
                a {
                    color: @dgray;
                }
            }
            .follow {
                display: block;
                position: absolute;
                top: 0;
                right: 0;
                width: 50px;
                height: 30px;
                line-height: 30px;
                .font(14px, center, #4cd964);
            }
        }
        .look-all {
            display: block;
            width: 100%;
            height: 30px;
            line-height: 30px;
            .font(14px, center, #787878);
            background-color: #f7f7f7;
            border: 1px solid #dcdcdc;
            .border-radius(5px);
        }
    }
}

.swiper-slide {
    img {
        width: 100%;
        height: 200px;
    }
}

.swiper-button-prev,
.swiper-button-next {
    background-color: rgba(0, 0, 0, .5);
    .border-radius(5px);
}

.jy-login-table {
    .wh(400px, auto);
    margin: 0 auto;
    padding: 25px;
}

.jy-login-logo {
    box-sizing: border-box;
    display: block;
    .wh(100px, 100px);
    .border-radius(50%);
    border: 1px solid @white;
    margin: 0 auto;
    padding: 1px;
}

.form {
    position: relative;
    display: block;
    background-color: @white;
    padding: 5px 25px 35px;
    margin-top: 25px;
    .border-radius(3px);
    input {
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid @gray;
        box-shadow: none !important;
        .border-radius(0) !important;
        color: @dgray;
    }
    input[type=checkbox] {
        background-color: @white;
        border: 1px solid @gray;
    }
}

.regist-btn {
    position: absolute !important;
    right: 25px;
    bottom: -35px;
    left: 25px;
    button {
        line-height: 18px;
    }
}

.form-group {
    position: relative;
}

.form-group-t {
    margin-bottom: 15px;
    a {
        float: left;
        display: block;
        .wh(50%, 50%);
        line-height: 50px;
        text-align: center;
        color: @dgray;
    }
}

.sign-up-msg {
    font-size: 12px;
    text-align: center;
}

.active {
    color: #4cd964 !important;
    border-bottom: 1px solid #4cd964;
}

.form-icon {
    position: relative;
    padding-left: 50px!important;
}

.img-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    .wh(18px, 18px);
    z-index: 99;
}

.jy-login-content {
    box-sizing: border-box;
    padding: 50px 0 0 0;
    .jy-login-banner {
        .wh(100%, auto);
    }
}

.jy-third-part {
    text-align: center;
    padding: 40px 25px;
    button {
        display: inline-block;
        .wh(60px, 60px);
        line-height: 18px;
        .font(14px, center, @white);
        background-repeat: no-repeat;
        background-size: 40px 40px;
        background-position: center top;
        padding: 30px 0 0 0;
        margin-right: 10px;
        .border-radius(50%);
    }
    span {
        position: relative;
        display: block;
        font-size: 14px;
        color: #555555;
        margin-bottom: 11px;
        &:after {
            content: "";
            display: block;
            position: absolute;
            top: 10px;
            right: 5px;
            .wh(30%, auto);
            border-top: 1px solid #555555;
        }
        &:before {
            content: "";
            border-top: 1px solid #555555;
            display: block;
            position: absolute;
            .wh(30%, auto);
            top: 10px;
            right: 5px;
        }
    }
    .sina {
        background-image: url(../../img/sina.png);
    }
    .qq {
        background-image: url(../../img/qq.png);
    }
    .wechat {
        background-image: url(../../img/wecat.png);
    }
}

.jy-regist {
    margin-top: 20px;
    span {
        display: inline-block;
    }
}

.auto-code {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99;
}

footer {
    .wh(100%, auto);
    padding: 50px 0 20px 0;
    a {
        .font(12px, center, #888888);
    }
    i {
        .font(12px, center, #888888);
        font-weight: bold;
        padding: 0 5px;
    }
    .icp {
        .wh(100%, auto);
        .font(12px, left, @gray);
        padding: 10px 40% 0 0;
        img {
            .wh(auto, 20px);
        }
    }
}

@media only screen and (max-width: 479px) {
    .container {
        .wh(100%, auto);
        margin: 0 auto;
        padding: 0 auto;
    }
    body {
        .wh(auto, auto);
    }
    .jy-login-table {
        .wh(100%, auto);
    }
    .jy-login-content {
        .wh(auto, 100%);
        padding: 0;
    }
    .jy-third-part {
        padding: 40px 25px;
        button {
            .wh(100%, 50%);
            margin-right: 0;
            padding: 12px 0;
            .border-radius(3px);
            background-size: 50px 50px;
            background-position: left center;
        }
    }
}
